package com.easy.easylibdemo.ui.contacts.adapter;

import android.content.Context;

import com.easy.easylibdemo.R;
import com.easy.easylibdemo.ui.contacts.model.ContactsBean;
import com.guyj.CommonAdapter;
import com.guyj.base.ViewHolder;

import java.util.List;

/**
 * 作　　者: guyj
 * 修改日期: 2016/12/30
 * 描　　述:
 * 备　　注:
 */
public class ContactsAdapter extends CommonAdapter<ContactsBean> {

    public ContactsAdapter(Context context, int layoutId, List<ContactsBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder viewHolder, ContactsBean o, int i) {
        viewHolder.setText(R.id.tv_name,o.getName());
        viewHolder.setOnItemChildClickListener(R.id.tv_name);
    }
}
